import Vue from 'vue';
import App from './App.vue';
import router from './router';
import i18n from './i18n/i18n';
import Element from 'element-ui';
import VueBus from 'vue-bus';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/css/common.css';
Vue.config.productionTip = false;
Vue.use(Element);
Vue.use(VueBus);
let vm = new Vue({ router, i18n, render: h => h(App) }).$mount('#app');
console.log(vm);
if (module.hot) {
  module.hot.accept(['./i18n/lang/en', './i18n/lang/zh'], function() {
    i18n.setLocaleMessage('en', require('./i18n/lang/en').default);
    i18n.setLocaleMessage('zh', require('./i18n/lang/zh').default);
  });
}
